import tableServiceAbstract from "@/core/table/tableService.interface";
import { $serviceOrganizationCancel,$serviceOrganizationChannelList,$serviceOrganizationGrant} from "@/api/serviceOrganization/serviceOrganization";
export default class roleChannelService implements tableServiceAbstract {
  admin_id:any;
  constructor(e:any) {
    this.admin_id=e;
  }
  getTable(params: any): Promise<any> {
    // let mParams: { [key: string]: any, role_id: number } = { role_id: 0 };
    // mParams.page = params.current;
    // mParams.limit = params.pageSize;
    // mParams.role_id = params.role_id;
    // mParams.work_userid = params.work_userid;
    // mParams.name = params.name;
    // mParams.phone = params.phone;
    return $serviceOrganizationChannelList({
       "admin_id":this.admin_id,
      ...params,
   });
  }
  delete(params: any): Promise<any> {
    return $serviceOrganizationCancel(params);
  }
  add(params: any): Promise<any> {
    return $serviceOrganizationGrant(params);
  }
  edit(params: any): Promise<any> {
    return Promise.resolve(true);
  }
  detail(params: any): Promise<any> {
    return Promise.resolve(true);
  }
}